package com.media.themovieworld.util;

public class StringUtils {

	public static boolean isNumeric(String str){
	  if(!isEmpty(str)){
		  return str.matches("-?\\d+(\\.\\d+)?");  //match a number with optional '-' and decimal.
	  }else{
		 return false;
	  }
	}
	
	public static boolean isEmpty(String str){
		if(str!=null && !str.trim().isEmpty()){
			return false;
		}else{
			return true;
		}
	
	}
}
